home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
text
/
tex
/
Detex_2_4.lha
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-01-02
|
1KB
|
82 lines
# Makefile for detex and delatex
#
# Daniel Trinkle
# Computer Science Department
# Purdue University
#
# Amiga port for the SAS/C version 6.1 compiler by Kari Sutela
#
#
# Detex is a program to remove TeX and LaTeX constructs from text source.
# Installation directory
#
DESTDIR = sys:bin
# Compile time flags, just uncomment the necessary lines
#
DEFS = DEFINE MAXPATHLEN=512 DEFINE NOFILE=10
#
# Add -traditional for GNU cc on ISC 386/ix system and possibly others
# (reported by pinard@iro.umontreal.ca)
#
#DEFS = ${DEFS} -traditional
#
# Add -DUSG for the SysV string manipulation routines
#
#DEFS = ${DEFS} -DUSG
#
# Add -DMAXPATHLEN=<length> if it is not defined in /usr/include/sys/param.h
#
#DEFS = ${DEFS} -DMAXPATHLEN=1024
#
# Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration
# in detex.l (reported by pinard@iro.umontreal.ca)
#
#DEFS = ${DEFS} -DNO_MALLOC_DECL
#
CFLAGS = ${DEFS}
LFLAGS = -8 -L
# Program names
#
PROGS = detex
# Header files
#
HDR = detex.h
# Sources
#
SRC = detex.l
# Objects for various programs
#
D_OBJ = detex.c
all: ${PROGS}
detex: ${D_OBJ}
${CC} ${CFLAGS} ${D_OBJ}
detex.c: detex.l
flex ${LFLAGS} detex.l
# This one requires WShell
"if exists('detex.c') then 'delete detex.c';"
rename lex.yy.c detex.c
distclean:
delete \#?.(info|lnk)
clean:
delete \#?.(info|o|lnk) ${PROGS}
realclean:
delete \#?.(info|o|lnk|c) ${PROGS}
# Dependencies
#
detex.c: detex.h detex_protos.h detex.l